package business_logic.database;

import java.util.Collection;
import java.util.HashSet;
import java.util.Set;
import business_logic.GameElement;
import business_logic.view.GameView;

public class GameDatabaseEntry
{
    private GameElement m_element;
    private Set<GameView> m_views;
    
    public GameDatabaseEntry(GameElement element)
    {
        m_element = element;
        m_views = new HashSet<GameView>();
    }
    
    public GameElement getElement()
    {
        return m_element;
    }
    
    public Collection<GameView> getViews()
    {
        return m_views;
    }
    
    public void addView( GameView view)
    {
        m_views.add(view);
    }

}
